from django.urls import path, re_path
from . import views
urlpatterns = [
    # 多方式登录
    path('login', views.LoginAPIView.as_view()),
    # 手机验证码登录
    path('login/mobile', views.LoginMobileAPIView.as_view()),
    #手机验证码注册
    path('register', views.RegisterMobileAPIView.as_view()),
    # 发送短信
    path('sms', views.SMSAPIView.as_view()),
    # 手机注册验证
    path('mobile', views.MobileAPIView.as_view()),
    # 用户个人信息单查
    re_path('^user_info/(?P<pk>\d+)$', views.UserInfoRetrieveAPIView.as_view()),
    # 紧急联系人单增
    path('emergency', views.EmpersonAPIView.as_view()),
    # 安全问题单增
    path('add_question', views.AddQuestionAPIView.as_view()),
    # 修改密码单改
    path('alter_pwd', views.ChangePwdAPIView.as_view()),
    # 安全问题群查
    path('questions', views.QuestionListAPIView.as_view()),
    # 投诉订单单增
    path('complain', views.OrderComplainAPIView.as_view()),
    # 投诉订单群查
    path('complain_info', views.CompliainInfoListAPIView.as_view()),
    # 订单发票单增
    path('receipt', views.OrderReceiptAPIView.as_view()),
    # 违章群查
    path('traffic', views.TrafficListAPIView.as_view()),
    # 发票群查
    path('receipt_search', views.ReceiptSearchListAPIView.as_view()),

]